@extends('admin.container')

@section('c-body')
        <!-- content start -->
<div class="am-g">
    <div class="am-u-sm-12 am-u-md-6">
        <div class="am-btn-toolbar">
            <div class="am-btn-group am-btn-group-xs">
                <a href="{{ route('admin.category.create') }}" class="am-btn am-btn-default"><span class="am-icon-plus"></span> 新增</a>
                {{-- <button type="button" class="am-btn am-btn-default"><span class="am-icon-trash-o"></span> 删除</button>--}}
            </div>
        </div>
    </div>


</div>

<div class="am-g">
    <div class="am-u-sm-12">
        <form class="am-form">
            <table class="am-table am-table-striped am-table-hover table-main">
                <thead>
                <tr>
                    <th class="table-check"><input type="checkbox"/></th>
                    <th class="table-id">ID</th>
                    <th class="table-title">分类名</th>
                    <th class="table-type">分类标题</th>
                    <th>文章数</th>
                   {{-- <th class="table-type">排序</th>--}}
                    <th class="table-date am-hide-sm-only" >更新时间</th>
                    <th class="table-set" style="margin-left: 10px;">操作</th>
                </tr>
                </thead>
                <tbody>
                    @include('admin.site.category.category-index-list', ['categories' => $categories, 'level' => 0])
                </tbody>
            </table>
        </form>
    </div>
</div>
<!-- content end -->
@stop
@section('c-foot')
    <script>
        AdminTools.csrfToken = "{{ csrf_token() }}";
    </script>
@stop